package cate.game.role.bag.prop.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;

import java.util.Map;

@ClientMsg(title = "礼包使用次数 返回")
public class PackUseTimesDataResp implements MsgOutput {
    public Map<Integer, Integer> packUseTimes;

    public PackUseTimesDataResp(){

    }

    public PackUseTimesDataResp(Role role){
        this.packUseTimes = role.getBag().prop.getPackUseTimes();
    }

    public PackUseTimesDataResp(Map<Integer, Integer> packUseTimes){
        this.packUseTimes = packUseTimes;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.PACK_TIMES_DATA_RESP;
    }
}
